//
//  Common.swift
//  MicroBlog
//
//  Created by  NorthCity on 15/11/5.
//  Copyright © 2015年  NorthCity. All rights reserved.
//

import UIKit
///全局外观渲染颜色-> 延展出颜色管理类
let TcgAppearanceTintColor = UIColor.orangeColor()


///切换根据控制器的通知
let TcgSwitchRootViewControllerNotification = "TcgSwitchRootViewControllerNotification"
///选中图片通知
let TcgStatusSelectedPhotoNotification = "TcgStatusSelectedPhotoNotification"
/// 选中照片的 KEY - IndexPath
let TcgStatusSelectedPhotoIndexPathKey = "WBStatusSelectedPhotoIndexPathKey"
/// 选中照片的 KEY - URL 数组
let TcgStatusSelectedPhotoURLsKey = "WBStatusSelectedPhotoURLsKey"


//MARK: -  全局函数
/// 延迟在主线程函数
func delay(delat:Double,callFunc:()->()){
    dispatch_after(
        dispatch_time(DISPATCH_TIME_NOW ,Int64(delat * Double(NSEC_PER_MSEC))),
        dispatch_get_main_queue()) { () -> Void in
        callFunc()
    }
}